package composite.xpath;

import lombok.Data;

import java.util.List;

@Data
public class Directory {
    private int level;
    private String id;
    private String parentId;
    // 形如/1/2/3
    private String xPath;

    public void save(Directory directory) {
        //保存至数据库中
    }
    public List<Directory> get(String id){
        /**
         *通过xpath模糊查询路径返回列表
         */
        return null;
    }
}
